//
//  TMHomeViewModel.h
//  国学培训用户端
//
//  Created by Tao Li on 2018/8/9.
//  Copyright © 2018年 mac. All rights reserved.
//

#import <Foundation/Foundation.h>
typedef void (^ SuccessBlock)(id responseObject);
typedef void (^ FailureBlock)(NSString *error);
typedef void (^ CompleteBlock)(id , id);
@interface TMHomeViewModel : NSObject
- (void)getHomePageDataWithParam:(NSString *)dic Success:(CompleteBlock)block Failed:(FailureBlock)failre;
- (void)getTypeWithParam:(NSInteger)fid AndPage:(NSInteger)page Success:(CompleteBlock)block Failed:(FailureBlock)failre;
- (void)getRecommendDetailParam:(NSInteger)fid Page:(NSInteger)page Success:(CompleteBlock)block Failed:(FailureBlock)failre;
- (void)addShoppingCartParam:(NSInteger)fid Success:(SuccessBlock)block Failed:(FailureBlock)failre;
//- (void)deleteShoppingCartParam:(NSInteger)fid Success:(SuccessBlock)block Failed:(FailureBlock)failre;
- (void)getShopHomeDataWithShop:(NSInteger)sid Success:(CompleteBlock)success AndFiled:(FailureBlock)faild;
-(void)getShopCollectionWith:(NSInteger)cid Success:(SuccessBlock)success failed:(FailureBlock)failed;
-(void)getSearchDataWithKwords:(NSDictionary*)param Success:(CompleteBlock)success failed:(FailureBlock)failed;

-(void)getChatInformationWith:(NSInteger)cid Success:(SuccessBlock)success failed:(FailureBlock)failed;
@end
